//
//  ShowtimeDataModel.h
//  ShowTimeApp
//
//  Created by Ruby on 11/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ShowTime.h"
#import "BaseDataModel.h"

@interface ShowtimeDataModel :  BaseDataModel{
    
}
//Khoi tao CinemaDataModel
-(id)initShowtimeDataModel;
//Them 1 object (Showtime) vao data model
-(void)insertObject:(id)showtime;
//Them 1 danh sach cac objetc vao data model
-(void)insertObjects:(NSMutableArray *)showtimeList;
//-(void)insertObject:(id)showtime withCinemaList:(NSMutableArray*)cinemaList withMovieList:(NSMutableArray*)movieList;
//-(void)insertObjects:(NSMutableArray *)showtimeList withCinemaList:(NSMutableArray*)cinemaList withMovieList:(NSMutableArray*)movieList;

//Lay toan bo showtime theo cinemaID, movieID va sap xep tang theo date
-(NSMutableArray*)getAllShowtimeByCinemaSortByDateAscending:(int) cinemaID withMovieID:(int)movieID;
//Lay chi tiet showtime
-(ShowTime*)getDetailByID:(int) ID;
//Kiem tra movie co thuoc danh sach chieu cua cinema
-(BOOL)isMovieInShowtimeOfCinema:(int)cinemaID withMovieID:(int)movieID;
-(void)deleteAll;
//Ham xuat danh sach movie de test
-(void)output:(NSMutableArray*)showtimeList;
@end
